package com.bangdream.michelia.entity;

import com.google.gson.Gson;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Property;

import java.io.Serializable;

/**
 * Created by Mr.Wang on 2017/12/27.
 * 909732184@qq.com
 * 文件下载列表的数据表
 */
//下载信息的实体类 存放下载成功的下载地址和本地地址 或者下载失败的下载地址和错误信息等数据
@Entity
public class DownLoadInfo implements Serializable{
    //GreenDao实体类实现Serializable需要添加下面这句
    static final long serialVersionUID = 42L;
    //不能用int 主键
    @org.greenrobot.greendao.annotation.Id(autoincrement = true)
    private Long tabId;
    //网络地址
    @Property(nameInDb = "NetUrl")
    private String NetUrl;
    //本地地址
    @Property(nameInDb = "LocalUrl")
    private String LocalUrl;
    //是否下载成功
    @Property(nameInDb = "Success")
    private boolean Success;
    //下载失败的描述
    @Property(nameInDb = "Description")
    private String Description;
    //文件后缀
    @Property(nameInDb = "fileSuffix")
    private String fileSuffix;
    //下载失败的错误标识
    @Property(nameInDb = "FailCode")
    private int FailCode;
    @Property(nameInDb = "updDate")
    private String updDate;
    @Property(nameInDb = "fileSize")
    private String fileSize;
    @Property(nameInDb = "name")
    private String name;
    @Generated(hash = 253612766)
    public DownLoadInfo(Long tabId, String NetUrl, String LocalUrl, boolean Success,
            String Description, String fileSuffix, int FailCode, String updDate,
            String fileSize, String name) {
        this.tabId = tabId;
        this.NetUrl = NetUrl;
        this.LocalUrl = LocalUrl;
        this.Success = Success;
        this.Description = Description;
        this.fileSuffix = fileSuffix;
        this.FailCode = FailCode;
        this.updDate = updDate;
        this.fileSize = fileSize;
        this.name = name;
    }
    @Generated(hash = 1743687477)
    public DownLoadInfo() {
    }
    public Long getTabId() {
        return this.tabId;
    }
    public void setTabId(Long tabId) {
        this.tabId = tabId;
    }
    public String getNetUrl() {
        return this.NetUrl;
    }
    public void setNetUrl(String NetUrl) {
        this.NetUrl = NetUrl;
    }
    public String getLocalUrl() {
        return this.LocalUrl;
    }
    public void setLocalUrl(String LocalUrl) {
        this.LocalUrl = LocalUrl;
    }
    public boolean getSuccess() {
        return this.Success;
    }
    public void setSuccess(boolean Success) {
        this.Success = Success;
    }
    public String getDescription() {
        return this.Description;
    }
    public void setDescription(String Description) {
        this.Description = Description;
    }
    public String getFileSuffix() {
        return this.fileSuffix;
    }
    public void setFileSuffix(String fileSuffix) {
        this.fileSuffix = fileSuffix;
    }
    public int getFailCode() {
        return this.FailCode;
    }
    public void setFailCode(int FailCode) {
        this.FailCode = FailCode;
    }
    public String getUpdDate() {
        return this.updDate;
    }
    public void setUpdDate(String updDate) {
        this.updDate = updDate;
    }
    public String getFileSize() {
        return this.fileSize;
    }
    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
 
}
